package org.example.test1.controller;

import org.example.test1.pojo.JwtUtils;
import org.example.test1.pojo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class Cscontroller {
    @GetMapping("/cs")
    public Result cs(String name,int age){
        String str = name + age;
        return Result.success(str);
    }
    @GetMapping("/tg")
    public Result tg(){
        Map<String,Object> m = new HashMap<>();
        String jwt = JwtUtils.generateJwt(m);
        return Result.success(jwt);
    }
}
